package com.kfm.springmybatis.service;

import com.kfm.springmybatis.dao.EmpMapper;
import com.kfm.springmybatis.model.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class EmpService {
    @Autowired
    EmpMapper empMapper;

    public List<Emp> selectAll(){
        return empMapper.selectAll();
    }
}
